import javax.swing.*;

/**
 * Created by Administrator on 2016/10/7.
 */
public class ShapeTest
{
    public static void main( String[] args)
    {
        Exercise_2 panel = new Exercise_2();//create a new panel
        JFrame application = new JFrame();//create a new JFrame

        application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE);
        application.add( panel );//add the panel to the frame
        application.setSize(500 , 500);//set the desired size
        application.setVisible( true );//show the frame

    }//end main
}//end class ShapesTest